package com.sc.smartcommunity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.smartcommunity.domain.CarPark;
import com.sc.smartcommunity.mapper.CarParkMapper;
import com.sc.smartcommunity.service.CarParkService;
import jakarta.annotation.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Chenke Zhao
 * @date 2025/9/22 23:11
 * @description CarParkServiceImpl
 */
@Service
public class CarParkServiceImpl extends ServiceImpl<CarParkMapper, CarPark> implements CarParkService {

    @Resource
    private CarParkMapper carParkMapper;


    @Override
    public List<CarPark> selectList(Integer status) {
        return carParkMapper.selectList(new LambdaQueryWrapper<CarPark>().eq(CarPark::getStatus, status));
    }
}
